<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            width: 100px;
            height: 100px;
            border: 1px solid #666;
            background-color: pink;
        }
        .mark {
            display: inline-block;
        }
        @media (max-width:800px) and (min-width:200px) {
            .div1 {
                background-color: red;
            }
            .mark {
                display: none;
            }
            html {
                font-size: 80px;
            }
        }
        @media (max-width:1600px) and (min-width:800px) {
            .div1 {
                background-color: blue;
            }
            .mark {
                display: inline-block;
            }
        }
        /* @media (max-width:800px) and (mix-width:200px) {
            .div1 {
                background-color: red;
            }
        } */
    </style>
</head>
<body>
    <div class="div1">背景颜色随着浏览器的大小变化</div>
    <mark class="mark">大屏显示，小屏隐藏</mark>
</body>
</html>